#include <stdio.h>
#include <string.h>

char *reverseString(char *str)
{
  int n = strlen(str);
  for (int i = 0; i < n / 2; i++)
  {
    char temp = str[i];
    str[i] = str[n - i - 1];
    str[n - i - 1] = temp;
  }
  return str;
}

int main()
{
  char str[100];
  char str1[10] = "Hello";
  str1[0] = 'h';
  printf("Modified string: %s\n", str1);
  printf("Enter a string: ");
  scanf("%s", str);
  printf("Reversed string: %s\n", reverseString(str));
  return 0;
}